package com.tiantianfresh.model.pojo;

/**
 * @author FANGAO
 * @date 2021/12/5 - 下午 20:38
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Table(name = "r_order")
@Data
public class Order {

    @Id
    private Integer oid;
    private String orderid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderdate;
    private Double totalPrice;
    private Integer userid;
    private Integer orderState;
    private Integer addressId;
    private String remarks;
    @Transient
    private List<OrderSpecific> orderSpecifics;
}
